#ifndef DEPTH_RENDER_TARGET_H
#define DEPTH_RENDER_TARGET_H

#include "Framework.h"

#define RENDER_WIDTH 800
#define RENDER_HEIGHT 600

class DepthRenderTarget {
public:

	DepthRenderTarget(unsigned int width, unsigned int height, unsigned int ratio);

	~DepthRenderTarget();

	void bind();

	void unbind();

	GLuint colorTextureID() const;

	GLuint depthTextureID() const;

	int getRatio()	{ return ratio_; }
	
	void setRatio(int ratio) { ratio_ = ratio; }
private:
	GLuint col_textureID_;
	GLuint dep_textureID_;
	GLuint frameBufferID_;
	GLuint depthBufferID_;
	GLuint width_;
	GLuint height_;
	unsigned int ratio_;

};

#endif
